using System.Collections.Specialized;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Be.Timvw.Framework.Collections
{
    public static class AssertNameValueCollection
    {
        public static void HaveSameElements(NameValueCollection collection1, NameValueCollection collection2)
        {
            Assert.AreEqual(collection1.Keys.Count, collection2.Keys.Count);
            foreach(string key in collection1.Keys)
            {
                Assert.AreEqual(collection1.Get(key), collection2.Get(key));
            }
        }
    }
}